package com.zzl.car.util;

import com.alibaba.fastjson.JSON;
import com.zzl.car.entity.User;

import javax.websocket.EncodeException;
import javax.websocket.Encoder;
import javax.websocket.EndpointConfig;

public class zdpUserEncode implements Encoder.Text<User>{
    @Override
    public String encode(User object) throws EncodeException {
        return JSON.toJSONString(object);
    }

    @Override
    public void init(EndpointConfig endpointConfig) {

    }

    @Override
    public void destroy() {

    }
}
